package mylibrary.designPattern.decorator;

public class Test {

	public static void main(String[] args) {
		
//		MessageBoardHandler handler = new MessageBoard();
//		String content = handler.filter("Good good study");
//		System.out.println(content);
		
		
		MessageBoardHandler handler = new SensitiveDecorator(new HtmlDecorator(new MessageBoard()));
		
		System.out.println(handler.filter("Good good study"));
		
	}
}
